build: Use cc.links to check linker arguments
authorTing-Wei Lan <lantw@src.gnome.org>
Sun, 22 Apr 2018 13:42:03 +0000 (21:42 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 23 Apr 2018 22:54:43 +0000 (18:54 -0400)
commit48af68894052101f52ed8390efb61ad9cfd8b47b
tree8ebb8d02bf1105c3edb94335625d5098f86e3fa1
parente882db2763d2996a0b517448251e75235a4ea8f5
build: Use cc.links to check linker arguments

Instead of hard-coding linker flags for a specific operating system and
a specific compiler, we can should cc.links to test them, so they can be
used on more operating systems and compilers.
meson.build